package com.yifeng.repo.micro.service.server.mps;

import feign.Param;
import feign.RequestLine;
import next.fire.mps.api.MessageTemplateService;
import next.fire.mps.api.model.MsgTemplate;
import next.framework.page.PageResult;
import org.springframework.cloud.openfeign.FeignClient;

@FeignClient(name = "mpsMessageTemplateServiceClient", url = "${yfcloud.micro.service.mps.url}", path = "/fire-mps")
public interface MessageTemplateServiceClient extends MessageTemplateService {
    @Override
    @RequestLine("POST /MessageTemplateService/getByTemplateId")
    MsgTemplate getByTemplateId(@Param("mpCode") String mpCode, @Param("mpAppId") String mpAppId, @Param("msgTemplateId") String msgTemplateId);

    @Override
    @RequestLine("POST /MessageTemplateService/list")
    PageResult<MsgTemplate> list(@Param("mpCode") String mpCode, @Param("mpAppId") String mpAppId, @Param("msgTemplateId") String msgTemplateId,
                                 @Param("pageNo") int pageNo, @Param("pageSize") int pageSize);
}
